package com.it.gmall.order.client;

import com.it.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "service-order")
public interface OrderFeignClient {

    // 去结算页面
    @GetMapping("/api/order/trade")
    public Map trade();

    // 根据订单id查询订单信息
    @GetMapping("/api/order/auth/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
}
